package com.blank.blood.pojo;

import com.blank.blood.utils.DateFormatUtil;
import lombok.Data;

import java.util.Date;

/**
 * @author blank 2020-12-4 下午 06:32
 * @version 1.0.0
 */
@Data
public class Student {
    private static final long serialVersionUID = 1L;
    private Integer id;
    private String name;
    private Date birthday;
    private String sex;
    private Hobby hobby;

    public String getBirthday() {

        return DateFormatUtil.formatter(birthday);
    }
}
